import Blockly from 'blockly/core'
import 'blockly/python_compressed'
import 'blockly/blockly_compressed'
import 'blockly/blocks_compressed'

Blockly.Blocks.logic_pass_ = {
  init: function () {
    this.appendDummyInput().appendField('pass')
    this.setPreviousStatement(true, null)
    this.setNextStatement(true, null)
    this.setColour(210)
    this.setTooltip('pass关键词')
    this.setHelpUrl('')
  }
}

Blockly.Python.logic_pass_ = function (block) {
  const code = 'pass\n'
  return code
}

export default Blockly
